const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,
    devServer: {
        host: '0.0.0.0',
        port: 8080,
        open: true,
        proxy: {
            // detail: https://cli.vuejs.org/config/#devserver-proxy
            '/api': {
                target: `http://localhost:7777`,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/api'
                }
            },
            '/upload': {
                target: 'http://localhost:7777',
                changeOrigin: true

            }
        },
        client: {
            overlay: false,
        },

    },
})